package cate.game.role.pvp.eliterace.vo;

import cate.game.pvp.eliterace.data.EliteRaceRecord;
import lombok.Data;

@Data
public class EliteRaceReportVO {
    private String uid;
    private byte winner;
    private long aPoints;
    private long bPoints;
    private long aPointsChanged;
    private long bPointChanged;
    private String replayId;
    private long replayId2;
    private long recordTime;

    public static EliteRaceReportVO of(EliteRaceRecord record) {
        EliteRaceReportVO reportVO = new EliteRaceReportVO();
        reportVO.setUid(record.getRid());
        reportVO.setWinner(record.getWinner());
        reportVO.setAPoints(record.getAPoints());
        reportVO.setBPoints(record.getBPoints());
        reportVO.setAPointsChanged(record.getAPointsChanged());
        reportVO.setBPointChanged(record.getBPointsChanged());
        reportVO.setReplayId(record.getReplayId());
        reportVO.setReplayId2(record.getReplayId2());
        reportVO.setRecordTime(record.getRecordTime());
        return reportVO;
    }
}
